<?php
// Include core files
include 'Connection.config.php';
include 'Connection.php';

// Create a new connection object
// MySQL connection will be open
$DB = new Connection();


// Create new query object
$table1 = new Query("SELECT * FROM tablo1", $DB->conn);


//Print field f1 in first row
echo $table1->Field("f1");

// All records
while ($table1->LOOP()) {
	echo $table1->Field("f1");
}

// Reset pointer
// We can use old recordset without new query now
$table1->Reset();

// Print field f1 in first row again
echo $table1->Field("f1");

?>